//
//  HttpInterfaceManage.h
//  HuiKaoClient
//
//  Created by 龚 杰 on 13-3-4.
//  Copyright (c) 2013年 龚 杰. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

@protocol HttpInterfaceManageDelegate <NSObject>
@optional
-(void)RequestResultsLogin:(NSDictionary*)dic;
-(void)RequestResultsRegister:(NSDictionary*)dic;
-(void)RequestResultsGUI:(NSDictionary*)dic;
-(void)RequestResultsGetGOSU:(NSDictionary*)dic;
-(void)RequestResultsGetExRe:(NSDictionary*)dic;
-(void)RequestResultsAddExRe:(NSDictionary*)dic;
-(void)RequestResultsProvincesList:(NSDictionary*)dic;
-(void)RequestResultsGetMyOrder:(NSDictionary*)dic;
-(void)RequestResultsGetTRC:(NSDictionary*)dic;
-(void)RequestResultsGetMyFav:(NSDictionary*)dic;
-(void)RequestResultsOrderSearch:(NSDictionary*)dic;
-(void)RequestResultsClassesSearch:(NSDictionary*)dic;
-(void)RequestResultsModifyMyData:(NSDictionary*)dic;
-(void)RequestResultsGetConsultingList:(NSArray*)dic;
-(void)RequestResultsSendConsulting:(NSDictionary*)dic;
-(void)RequestResultsAuthorizations:(NSDictionary*)dic;
-(void)RequestResultsThirdPartyLogin:(NSDictionary*)dic;
-(void)RequestResultsForgotPassword:(NSDictionary*)dic;
-(void)RequestResultsErrer:(NSDictionary*)dic;
@end

@interface HttpInterfaceManager : NSObject<ASIHTTPRequestDelegate>
{
    
}

@property(nonatomic,assign)id<HttpInterfaceManageDelegate>delegate;
+ (HttpInterfaceManager*)sharedManager;
//登陆
- (void)LoginRequestGet:(NSString*)username code:(NSString*)password;
- (void)LoginRequestPost:(NSString*)username code:(NSString*)password;
- (void)LoginFinish:(ASIHTTPRequest*)request;

//注册
- (void)RegisterRequestGet:(NSString*)username email:(NSString*)_email code:(NSString*)password;
- (void)RegisterRequestPost:(NSString*)username email:(NSString*)_email code:(NSString*)password;
- (void)RegisterFinish:(ASIHTTPRequest*)request;

//获得个人信息
- (void)GetUserinformationRequestGet:(NSString*)user_id;
- (void)GetUserinformationPost:(NSString*)user_id;
- (void)GetUserinformationFinish:(ASIHTTPRequest*)request;

//获得报名查分列表
- (void)GetGOSURequestGet;
- (void)GetGOSUFinish:(ASIHTTPRequest*)request;

//获得考试提示
- (void)GetExReRequestGet:(NSString*)userid;
- (void)GetExReFinish:(ASIHTTPRequest*)request;

//添加考试提示
- (void)AddExReRequestGet:(NSString*)userid province_ids:(NSString*)pids;
- (void)AddExReRequestPost:(NSString*)userid province_ids:(NSString*)pids;
- (void)AddExReFinish:(ASIHTTPRequest*)request;

//获得省份列表
- (void)ProvincesListRequestGet;
- (void)ProvincesListFinish:(ASIHTTPRequest*)request;

//获得我的订单list
- (void)GetMyOrderListRequestGet:(NSString*)cur_user_id  page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyOrderListRequestPost:(NSString*)cur_user_id  page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyOrderListFinish:(ASIHTTPRequest*)request;

//获得我的培训班list
- (void)GetMyTRCListRequestGet:(NSString*)cur_user_id  page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyTRCListRequestPost:(NSString*)cur_user_id  page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyTRCListFinish:(ASIHTTPRequest*)request;

//获得我的收藏
- (void)GetMyFavListRequestGet:(NSString*)cur_user_id  target:(NSString*)_target page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyFavListRequestPost:(NSString*)cur_user_id target:(NSString*)_target page:(NSString*)_page pageSize:(NSString*)_pageSize;
- (void)GetMyFavListFinish:(ASIHTTPRequest*)request;

//获得搜索订单
- (void)OrderSearchRequestGet:(NSString*)keyword;
- (void)OrderSearchRequestPost:(NSString*)keyword;
- (void)OrderSearchFinish:(ASIHTTPRequest*)request;

//获得搜索培训班
- (void)ClassesSearchRequestGet:(NSString*)keyword;
- (void)ClassesSearchRequestPost:(NSString*)keyword;
- (void)ClassesSearchFinish:(ASIHTTPRequest*)request;

//修改个人信息
- (void)ModifyMyDataRequestGet:(NSString*)_user_id private_code:(NSString*)_private_code
                      username:(NSString*)_username email:(NSString*)_email
                  old_password:(NSString*)_old_password password:(NSString*)_password;
- (void)ModifyMyDataRequestPost:(NSString*)_user_id private_code:(NSString*)_private_code
                      username:(NSString*)_username email:(NSString*)_email 
                  old_password:(NSString*)_old_password password:(NSString*)_password;
- (void)ModifyMyDataFinish:(ASIHTTPRequest*)request;

//咨询列表
- (void)GetConsultingLsitRequestGet:(NSString*)_userid UDID:(NSString*)_udid
                               page:(NSString*)_page pagenum:(NSString*)_pagenum;
- (void)GetConsultingLsitRequestPost:(NSString*)_userid UDID:(NSString*)_udid
                               page:(NSString*)_page pagenum:(NSString*)_pagenum;
- (void)GetConsultingLsitFinish:(ASIHTTPRequest*)request;

//发送咨询
- (void)SendConsultingRequestGet:(NSString*)_userid UDID:(NSString*)_udid message:(NSString*)_message;
- (void)SendConsultingRequestPost:(NSString*)_userid UDID:(NSString*)_udid message:(NSString*)_message;
- (void)SendConsultingFinish:(ASIHTTPRequest*)request;

//第三方授权
- (void)AuthorizationRequestGet:(NSString*)target;
- (void)AuthorizationsFinish:(ASIHTTPRequest*)request;

//第三方登陆
- (void)ThirdPartyLoginRequestGet:(NSString*)target token:(NSString*)_token;
- (void)ThirdPartyLoginFinish:(ASIHTTPRequest*)request;

//忘记密码
- (void)ForgotPasswordRequestGet:(NSString*)EMail;
- (void)ForgotPasswordFinish:(ASIHTTPRequest*)request;
@end
